#ifndef BSP_SERIAL_H
#define BSP_SERIAL_H
#include "hc32_ddl.h"
#include "bsp_uart.h"
typedef struct
{
    M4_USART_TypeDef* UART_UNIT;
    bsp_uart_cfg_t uart_cfg;   
}xComPortHandle;

void xSerialPutChar(xComPortHandle xPort, uint8_t cRxedChar, uint32_t timeout);
int xSerialGetChar(xComPortHandle xPort, signed char * xstring, uint32_t timeout);
xComPortHandle xSerialPortInitMinimal(uint32_t configCLI_BAUD_RATE, uint32_t cmdQUEUE_LENGTH);
void vSerialPutString(xComPortHandle xPort, signed char * xstring, unsigned short strlen );
#endif


